#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <vlc/vlc.h>
#include <QFrame>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

private:
    libvlc_instance_t *vlcInstance1;        // VLC实例1
    libvlc_media_player_t *vlcMediaPlayer1; // VLC媒体播放器1
    libvlc_media_t *vlcMedia1;              // VLC媒体1

    libvlc_instance_t *vlcInstance2;        // VLC实例2
    libvlc_media_player_t *vlcMediaPlayer2; // VLC媒体播放器2
    libvlc_media_t *vlcMedia2;              // VLC媒体2

    libvlc_instance_t *vlcInstance3;        // VLC实例3
    libvlc_media_player_t *vlcMediaPlayer3; // VLC媒体播放器3
    libvlc_media_t *vlcMedia3;              // VLC媒体3

    libvlc_instance_t *vlcInstance4;        // VLC实例4
    libvlc_media_player_t *vlcMediaPlayer4; // VLC媒体播放器4
    libvlc_media_t *vlcMedia4;              // VLC媒体4

private slots:
    void playRTMPStream();  // 播放RTMP流的槽函数
    void stopPlayback();    // 停止播放的槽函数
};

#endif // MAINWINDOW_H
